﻿using System;
using System.Collections.Generic;
using System.Collections.ObjectModel;
using System.ComponentModel;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using Code;
using github.heerheer.card2.UI.Models;
using Native.Sdk.Cqp.Model;
using PropertyChanged;


namespace github.heerheer.card2.UI.ViewModels
{
    [AddINotifyPropertyChangedInterface]
    public class ProHubViewModel: INotifyPropertyChanged
    {
        public event PropertyChangedEventHandler PropertyChanged;

        public ObservableCollection<JsonDownloadModel> jsonDownloads { get; set; }//分享卡池
        public string NeverMind { get; set; } = "NeverMind";//分享卡池
        public int Coin { get; set; } = AppMain.VipInfo.Coin;//分享卡池

        public ProHubViewModel()
        {
            jsonDownloads = new ObservableCollection<JsonDownloadModel>(getSharedJsons());

        }

        List<JsonDownloadModel> getSharedJsons()
        {
            var j = new List<JsonDownloadModel>();
            //j.Add(new JsonDownloadModel() { Name = "艾洛的卡池", ShareMember = "艾洛" });
            //j.Add(new JsonDownloadModel() { Name = "赫尔的卡池", ShareMember = "赫尔" });
            //j.Add(new JsonDownloadModel() { Name = "明日方舟", ShareMember = "神秘人" });
            return j;
        } 
    }
}
